package com.pllandxzx.controller;

import com.pll.dto.ResponseDto;
import com.pllandxzx.service.OrderService;
import com.pllandxzx.vo.OrderVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Author 小鹿
 * @Date 2025/6/11 14:08
 */

@Tag(name = "订单管理")
@RestController
@RequestMapping("/order")
public class OrderController
{
    @Autowired
    private OrderService orderService;
    //根据查询条件
    @Operation(description = "查询所有订单")
    @PostMapping("getOrderList")
    public ResponseDto getAllOrderList(@RequestBody OrderVo orderVo){
        System.out.println(orderVo);
        return orderService.getAllOrderList(orderVo);
    }
}